package com.qys.livesMall.shop.controller.app;

import com.qys.livesMall.common.result.R;
import com.qys.livesMall.shop.modal.dto.shop.level.ShopLevelSaveDTO;
import com.qys.livesMall.shop.modal.entity.H2ShopLevel;
import com.qys.livesMall.shop.modal.vo.ShopLevelVO;
import com.qys.livesMall.shop.service.H2ShopLevelService;
import io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * app-店铺等级管理
 *
 * @author wzy
 * @since 2023-04-05
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/app/shop-level")
public class AppH2ShopLevelController {

    private final H2ShopLevelService shopLevelService;

    /**
     * 店铺等级列表
     * @return
     */
    @GetMapping(value = "/{id}")
    public R<H2ShopLevel> getById(@PathVariable Integer id) {
        return R.ok(shopLevelService.getById(id));
    }
}
